package com.wyc.service.mode.builder;

import java.util.ArrayList;

/**
 * 场景2：根据不同的构建者来获取对应的实例化对象。
* */
public class demo2 {

    public static void main(String[] args) {
        ArrayList sequence = new ArrayList();
        sequence.add("engine boom");
        sequence.add("start");
        sequence.add("stop");
        BenzBuilder benzBuilder = new BenzBuilder();
        benzBuilder.setSequence(sequence);
        benzBuilder.getModel().run();


    }
}
